﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using MahApps.Metro.Controls;

namespace LunarSF.SHomeWorkshop.LunarMarkdownEditor
{
    /// <summary>
    /// MultiInputBox.xaml 的交互逻辑
    /// </summary>
    public partial class WrapTextSetter : MetroWindow
    {
        public WrapTextSetter()
        {
            InitializeComponent();
        }

        private void btnReset_Click(object sender, RoutedEventArgs e)
        {
            tbxFst.Text = "`";
            tbxSec.Text = "";
        }

        private void btnOK_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }

        private void btnCancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            this.Close();
        }

        private void MetroWindow_Loaded(object sender, RoutedEventArgs e)
        {
            tbxFst.Focus();
        }

        private void tbxFst_GotFocus(object sender, RoutedEventArgs e)
        {
            tbxFst.SelectAll();
        }

        private void tbxSec_GotFocus(object sender, RoutedEventArgs e)
        {
            tbxSec.SelectAll();
        }
    }
}
